package com.heima.mapper;

import com.heima.pojo.po.Role;
import com.heima.pojo.po.Users;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 存折
 * @since 2024-10-23
 */
public interface IUserMapper extends BaseMapper<Users> {


    @Select("select tb_role.role_id,tb_role.role_code,role_name from tb_user join tb_role on tb_user.role_id=tb_role.role_id;")
    List<Role> getRole();

}
